{include file="public/header"}
<body style="background-color: #f1f1f1;">

<div class="index_html huanzheliebiao huanzhexinxi flex_sign">
{include file="public/nav"}
    <div class="list_box per_box">
        <div class="title">
            <p>患者信息</p>
        </div>
        <div class="per_msg">
            <div class="left">
                {switch name="$patient['sex']"}
                {case value="1"}
                <img src="__STATIC__/index/imgs/head_nan.jpg" alt="">
                {/case}

                {case value="2"}
                <img src="__STATIC__/index/imgs/head_nv.jpg" alt="">
                {/case}
                {/switch}
            </div>
            <div class="mid">
                <span class="name">{$patient['name']}</span>
                <em>{$patient['sex']|get_sex_str}</em>
                <em>{$patient['birth']|getAge}岁</em>
                <div>
                    <span>身份证：</span>
                    <em>{$patient['document_num']}</em>
                </div>
            </div>
            <div class="new_box add_record">
                <a href="{:url('record/add_record',array('id'=>$patient['id']))}">
                    <i><img src="__STATIC__/index/imgs/new_btn.png" alt=""></i>
                    <span>新建检查记录</span>
                </a>
            </div>
        </div>
    </div>
    <div class="list_box patient_msg bing_list">
        <!--  列表的开始 -->
        <div class="list">
            <div class="top_dec">
                <strong>拍摄类型</strong>
                <strong>拍摄部位</strong>
                <strong>检查结果</strong>
                <strong>拍摄时间</strong>
            </div>
            <ul>
                {foreach $case_list as $case}
                <li>
                    <a href="{:url('record/check_detail',array('id'=>$case['id']))}">
                        <span class="first">
								<em>{$case['patient_case_type_name']}</em>
							</span>
                        <span>
								<em>

                                    {foreach name="$case['patient_part_lat']" item="svo"}
                                    {$svo['part'] ?? ''}/{$svo['lat']?? ''}
                                    <br>
                                    {/foreach}
								</em>
							</span>
                        <span class="dec">{$case['check_result']} </span>
                        <span>
								<em>{$case['check_time']|strtotime|date='Y-m-d',###}</em>
							</span>
                    </a>
                </li>
                {/foreach}

            </ul>
            <div class="data_base">
                <span>共{:count($case_list)}条记录</span>
            </div>
        </div>
    </div>
</div>

{include file="public/footer"}
